﻿<%@ Page Title="Table Content" Language="C#" MasterPageFile="~/OutlookMaster.master" AutoEventWireup="true"
    CodeFile="TableContent.aspx.cs" Inherits="Pages_TableContent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPage" runat="Server">
    <asp:Panel ID="panSearch" runat="server" DefaultButton="btnSearch">
        <br />
        <br />
        <table>
            <tr>
                <td>
                    <asp:RadioButton ID="radQuery" runat="server" AutoPostBack="True" 
                        oncheckedchanged="radQuery_CheckedChanged" Text="Query" />
                </td>
                <td>
                    <asp:TextBox ID="txtQuery" runat="server" Enabled="False" Width="500px"></asp:TextBox>
                </td>
                <td rowspan="2" valign="middle">
                    <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Pages/images/magnifier.png"
                        OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:RadioButton ID="radAllColumnsSearch" runat="server" AutoPostBack="True" 
                        Checked="True" oncheckedchanged="radAllColumnsSearch_CheckedChanged" 
                        Text="All columns search" />
                </td>
                <td>
                    <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="panToolbar" runat="server">
    <br />
        <asp:HyperLink ID="hypNewItem" runat="server" Text="NewItem"></asp:HyperLink>
    <br />
    <br />
        <asp:HyperLink ID="hypNew" runat="server" ImageUrl="~/Pages/images/24.png" Visible="false">hypNew</asp:HyperLink>
    </asp:Panel>
    <asp:Panel ID="panMessage" runat="server">
        <asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
    </asp:Panel>
    <asp:GridView ID="gvTableContent" runat="server" Width="100%" GridLines="Horizontal"
        AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="gvTableContent_SelectedIndexChanged"
        OnPageIndexChanging="gvTableContent_PageIndexChanging" OnSorting="gvTableContent_Sorting"
        PageSize="15" AlternatingRowStyle-BackColor="LightGray">
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
</asp:Content>
